/******************************************************************
 * Copyright (c) 2007 - 2007, Simon Guerard, All rights reserved.
 * 
 * Projet de jeu de course au large.
 * 
 * This File is part of Sail-Race
 * 
 * Sail-Race is free software; you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 * 
 * Sail-Race is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * Sail-Race; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
 * Fifth Floor, Boston, MA 02110-1301 USA
 */
package net.simcafamily.sailrace.vues;

import java.awt.Component;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;

import net.simcafamily.sailrace.core.AbstractView;

@org.springframework.stereotype.Component("vueErreurs")
public class VueErreurs extends AbstractView {
    JPanel contentPane;
    JLabel jLabel1 = new JLabel();
    JTextArea jTextAreaTextes = new JTextArea();
    JButton jButtonRetour = new JButton();
    JButton jButtonQuitter = new JButton();

    // affiche
    @Override
    public Component buildContentPane() {
	// affichage classe parent
	contentPane = new JPanel();
	jLabel1.setFont(new java.awt.Font("Garamond", 1, 16));
	jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
	jLabel1.setText("Les erreurs suivantes se sont produites !");
	jLabel1.setBounds(new Rectangle(15, 27, 374, 44));
	contentPane.setLayout(null);
	jTextAreaTextes.setText("");
	jTextAreaTextes.setBounds(new Rectangle(30, 76, 321, 104));
	jButtonRetour.setBounds(new Rectangle(20, 216, 206, 36));
	jButtonRetour.setText("Retour a la saisie");
	jButtonRetour
		.addActionListener(new VueErreurs_jButtonRetour_actionAdapter(
			this));
	jButtonQuitter.setBounds(new Rectangle(245, 216, 111, 36));
	jButtonQuitter.setText("Quitter");
	jButtonQuitter
		.addActionListener(new VueErreurs_jButtonQuitter_actionAdapter(
			this));
	contentPane.add(jLabel1, null);
	contentPane.add(jTextAreaTextes, null);
	contentPane.add(jButtonRetour, null);
	contentPane.add(jButtonQuitter, null);
	return contentPane;
    }

}

class VueErreurs_jButtonQuitter_actionAdapter implements
	java.awt.event.ActionListener {
    VueErreurs adaptee;

    VueErreurs_jButtonQuitter_actionAdapter(final VueErreurs adaptee) {
	this.adaptee = adaptee;
    }

    @Override
    public void actionPerformed(final ActionEvent e) {
	// adaptee.jButtonQuitter_actionPerformed(e);
    }
}

class VueErreurs_jButtonRetour_actionAdapter implements
	java.awt.event.ActionListener {
    VueErreurs adaptee;

    VueErreurs_jButtonRetour_actionAdapter(final VueErreurs adaptee) {
	this.adaptee = adaptee;
    }

    @Override
    public void actionPerformed(final ActionEvent e) {
	// adaptee.jButtonRetour_actionPerformed(e);
    }
}
